<script lang="ts" setup>
import { useCounterStore } from "@/store/modules/counter";
import { toRefs } from "vue";

const { count, handleAdd } = toRefs(useCounterStore());

console.log("handleAdd.value=>   ", handleAdd.value);
setInterval(() => {
	handleAdd.value();
}, 1000);
</script>

<template>
	<a-button @click="handleAdd">{{ count }}</a-button>
</template>

<style scoped></style>
